package com.example.administrator.zhongyichou.activity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;

import com.example.administrator.zhongyichou.base.BaseActivity;
import com.example.administrator.zhongyichou.Bean.BaseEventBean;
import com.example.administrator.zhongyichou.net.core.HttpLoader;
import com.example.administrator.zhongyichou.net.protocol.GsonBaseProtocol;
import com.example.administrator.zhongyichou.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by lichenyu on 2017/11/20.
 * 描述：发起筹款
 */

public class FundraisingActivity extends BaseActivity {
    @BindView(R.id.img_illness)
    ImageView imgIllness;
    @BindView(R.id.img_dream)
    ImageView imgDream;
    @BindView(R.id.img_close)
    ImageView imgClose;

    @Override
    protected void init() {
        ButterKnife.bind(this);
    }

    @Override
    protected void responseData(GsonBaseProtocol mGsonBaseProtocal) {

    }

    @Override
    protected HttpLoader initHttpLoader() {
        return null;
    }

    @Override
    protected int initContentView() {
        return R.layout.fundraising_activity;
    }

    @Override
    public boolean onEventBus(BaseEventBean baseEventBean) {

        return false;
    }

    @Override
    public void finish() {
        super.finish();
        overridePendingTransition(0, R.anim.slide_bottom_out);
    }

    @OnClick({R.id.img_illness, R.id.img_dream, R.id.img_close})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.img_illness://疾病筹款
                Intent intent = new Intent(this, LaunchDiseaseActivity.class);
                startActivity(intent);
                break;
            case R.id.img_dream://梦想筹款
                Intent intent1 = new Intent(this, LaunchDreamFundraisingActivity.class);
                startActivity(intent1);
                break;
            case R.id.img_close://关闭
                finish();
                break;
        }
    }
}
